import { IAddUser } from '@/utils/interface';
import { request } from 'umi';
export function addUser(data:IAddUser){
    return request('/user',{
        method:'POST',
        data
    })
}
export function getUser(){
    return request('/user/user')
}
export function addIdentity(params:{identity_text:string}){
    return request('/user/identity/edit',{
        params
    })
<<<<<<< HEAD:项目代码/four_group_warehouse/src/service/user.ts
}
=======
}
export function getIdentity(){
    return request('/user/identity')
}

export function getAuthority(){
    return request('/user/api_authority')
}

export function getRelation(){
    return request('/user/identity_api_authority_relation')
}

export function getAuthorityRelation(){
     return request('/user/identity_api_authority_relation')
}

export function getViewAuthority(){
    return request('/user/view_authority')
}

export function getIdentityView(){
    return request('/user/identity_view_authority_relation')
}
>>>>>>> 6801ff71268e10758d0eab903f2d851036f102dd:项目代码/liuexam_cms/src/service/user.ts
